body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f7;
    color: #000;
}

.iphone-frame {
    width: 390px;
    height: 844px;
    background-color: #fff;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.status-bar {
    height: 44px;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
}

.tab-bar {
    height: 83px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
    font-size: 10px;
    width: 20%;
}

.tab-item.active {
    color: #007aff;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.content {
    height: calc(844px - 44px - 83px);
    overflow-y: auto;
    padding: 20px;
}

.primary-button {
    background-color: #007aff;
    color: white;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    border: none;
}

.secondary-button {
    background-color: #e9e9eb;
    color: #007aff;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    border: none;
}

.card {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.progress-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(#007aff 0% 70%, #e9e9eb 70% 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
}

.progress-circle::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: white;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.quick-add-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.quick-add-button {
    background-color: #e9f7ff;
    color: #007aff;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    text-align: center;
    border: none;
    width: 30%;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e9e9eb;
}

.list-item:last-child {
    border-bottom: none;
}

.chart-container {
    width: 100%;
    height: 200px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e9e9eb;
    font-size: 16px;
}

.form-select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e9e9eb;
    font-size: 16px;
    background-color: white;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.badge {
    background-color: #007aff;
    color: white;
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

.water-type-selector {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

.water-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    margin-bottom: 16px;
}

.water-type-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #007aff;
    background-color: #e9f7ff;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.water-type-icon.selected {
    background-color: #007aff;
    color: white;
}

.water-type-label {
    font-size: 12px;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 12px;
}

.reminder-time {
    font-weight: 600;
    font-size: 18px;
}

.reminder-days {
    font-size: 12px;
    color: #8e8e93;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9e9eb;
    transition: .4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4cd964;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9e9eb;
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin-right: 16px;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.friend-status {
    font-size: 12px;
    color: #8e8e93;
}

.friend-rank {
    font-weight: 700;
    font-size: 18px;
    color: #007aff;
}

.segment-control {
    display: flex;
    background-color: #e9e9eb;
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 20px;
}

.segment-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #8e8e93;
    border-radius: 6px;
}

.segment-item.active {
    background-color: white;
    color: #007aff;
}